﻿//===============================================================================
//	LuaGlue.h
//	LUA->C++接口管理器
//===============================================================================

#pragma once

#include <cstdint>

#include "../share/BLuaGlue.h"
#include "LuaGluePlayer.h"
#include "LuaGlueScene.h"
#include "LuaGlueMission.h"
//-------------------------------------------------------------------------------
struct lua_State;

//-------------------------------------------------------------------------------
typedef struct
{
	const char* name;
	int32_t (*func)(lua_State*);
} luaGlueDef;

//-------------------------------------------------------------------------------
//	通知前端切换至场景指定位置
int32_t Send2C_PlayerEnterScene(lua_State *ls);
int32_t Send2C_PlayerLeaveScene(lua_State *ls);

//-------------------------------------------------------------------------------
//	设置缓存数组数据
int32_t Bufer_SetFixedBitValue(lua_State *ls);
int32_t Bufer_GetFixedBitValue(lua_State *ls);
int32_t Bufer_SetFixedValue(lua_State *ls);
int32_t Bufer_GetFixedValue(lua_State *ls);
int32_t Bufer_SetFixedValueByPlayerId(lua_State *ls);

//-------------------------------------------------------------------------------
//	设置奖励信息
int32_t Reward_DataStart(lua_State *ls);
int32_t Reward_DataSet(lua_State *ls);
int32_t Reward_DataFinished(lua_State *ls);
int32_t Reward_DataToClient(lua_State *ls);

//-------------------------------------------------------------------------------
//	修改玩家财富数据
//int32_t Modify_Gold(lua_State *ls);
//int32_t Modify_Diamond(lua_State *ls);
//int32_t Modify_Exp(lua_State *ls);
//int32_t Modify_Prop(lua_State *ls);

//-------------------------------------------------------------------------------
//	通用协议
int32_t MsgCommon_DataStart(lua_State *ls);
int32_t MsgCommon_DataSet(lua_State *ls);
int32_t MsgCommon_DataFinished(lua_State *ls);
int32_t MsgCommon_SendToClient(lua_State *ls);

int32_t MsgCommonEx_DataStart(lua_State *ls);
int32_t MsgCommonEx_DataSet(lua_State *ls);
int32_t MsgCommonEx_DataFinished(lua_State *ls);
int32_t MsgCommonEx_SendToClient(lua_State *ls);

//-------------------------------------------------------------------------------
int32_t PlayerActionLog(lua_State *ls);
int32_t Get_Uuid( lua_State * ls );

//-------------------------------------------------------------------------------
//	设置玩家称号
int32_t Title_SetToUser(lua_State *ls);
//-------------------------------------------------------------------------------
//	清除称号
int32_t Title_ClearOneTitleAndSendEmail(lua_State *ls);
//-------------------------------------------------------------------------------
//	获取过期称号索引
int32_t Title_GetOutOfDateTitleIndex(lua_State *ls);


//-------------------------------------------------------------------------------
//	获取背包中物品数量
int32_t Backpack_GetItemCountByItemId(lua_State *ls);
//int32_t Backpack_SetItemCountByItemId(lua_State *ls);

int32_t CSendToClient(lua_State *ls);
int32_t CSendToClientByPlayerID(lua_State *ls);
int32_t CReadJsonFile(lua_State *ls);
//int32_t CGetUsrPosIdByAccountId(lua_State *ls);

int32_t CSendMsgNoitfyToPlayer(lua_State *ls);
int32_t CSendMsgNoitfyToPlayerByPlayerId(lua_State *ls);
int32_t CSendMsgNoitfyToAllPlayer(lua_State *ls);

// lcl 2017-11-3 红点lua回调函数，table
int32_t CCheckRedFlagLabel(lua_State *ls);
int32_t CDeleteRedFlagLabel(lua_State *ls);
int32_t CCheckRedFlagFriend(lua_State * ls);
int32_t CCheckRedFlagTime(lua_State * ls);
int32_t CCheckRedFlagHero(lua_State *ls);

//-------------------------------------------------------------------------------
//	VIP
int32_t Vip_GetSweepRewardCount(lua_State *ls);
int32_t Vip_GetRewardTaskMaxCount(lua_State *ls);
int32_t Vip_GetHornRewardCount(lua_State *ls);

//-------------------------------------------------------------------------------
//	随机
int32_t Random_IntValue(lua_State *ls);

//-------------------------------------------------------------------------------
//	游戏时间
int32_t Game_CurrentTime(lua_State *ls);
int32_t Game_DayTime(lua_State *ls);

//-------------------------------------------------------------------------------
//	初始化--！注意顺序
int32_t Init_PlayerDefaultTitle(lua_State *ls);

//-------------------------------------------------------------------------------
//	称号结算
int32_t Title_BalanceByTime(lua_State *ls);

//-------------------------------------------------------------------------------
//	副本
int32_t Dungeon_UpdateStar(lua_State *ls);

//-------------------------------------------------------------------------------
//  Monster相关设定
int32_t Monster_GetMonsterInfoFromTable(lua_State *ls);

// 获取服务器大区号
int32_t Common_GetServerZoneId(lua_State *ls);

// 获取服务器区号
int32_t Common_GetServerAreaId(lua_State *ls);

// 获取 host_Id
int32_t Common_GetGameHost(lua_State *ls);

// 自适应选服配置
int32_t Common_GetConfigApposite(lua_State *ls);
//-------------------------------------------------------------------------------
// 获取在线用户人数
int32_t Common_GetOnlinePlayerCount(lua_State *ls);

//-------------------------------------------------------------------------------
// 发送GM公共聊天通知
int32_t GM_SendChatMsgNotify(lua_State *ls);



//-------------------------------------------------------------------------------
// 发送GM跑马灯通知
int32_t GM_SendMarqueeMsgNotify(lua_State *ls);

//-------------------------------------------------------------------------------
// 根据socketId发送消息
int32_t CSendToClientBySocketId(lua_State *ls);

//-------------------------------------------------------------------------------
// 设置英雄信息
int32_t Player_SetSingleHeroInfo(lua_State *ls);
int32_t Player_SetSinglePlayerHeroInfoByPlayerId(lua_State *ls);

//-------------------------------------------------------------------------------
// 用户工会信息更改通知
int32_t Send_UnionInfoChangedNotify(lua_State *ls);

//-------------------------------------------------------------------------------
// 充值后系统发送工会红包
int32_t Send_SystemRechargeRedpacket(lua_State *ls);

//-------------------------------------------------------------------------------
// 发送触宝组ID改变通知
int32_t Sent_TW_GroupIdNotify(lua_State *ls);

//-------------------------------------------------------------------------------
//	排行榜数据回写
int32_t Rank_ReflushLevelRankingsData(lua_State *ls);
int32_t Rank_SetUpdateState(lua_State *ls);
int32_t Rank_AddMemberToTimingList(lua_State *ls);

int32_t FunctionUnlock_CheckId(lua_State *ls);

int32_t Rank_ReflushArenaRankingsData(lua_State *ls);



int32_t CSendMessageToCenterServer(lua_State *ls);



//-------------------------------------------------------------------------------
// 服务器间心跳
int32_t G2M_UpdateHeartTime(lua_State *ls);

//-------------------------------------------------------------------------------
// webRedis
int32_t WebRedis_SetMapList(lua_State *ls);

/*
int32_t env_close(lua_State *ls);
int32_t env_connect(lua_State *ls);
int32_t conn_close(lua_State *ls);
int32_t conn_execute(lua_State *ls);
int32_t conn_commit(lua_State *ls);
int32_t conn_rollback(lua_State *ls);
int32_t conn_setautocommit(lua_State *ls);
int32_t cur_close(lua_State *ls);
int32_t cur_getcolnames(lua_State *ls);
int32_t cur_getcoltypes(lua_State *ls);
int32_t cur_fetch(lua_State *ls);
int32_t cur_numrows(lua_State *ls);
*/

//-------------------------------------------------------------------------------
static luaGlueDef LuaGlueDef[] =
{
	{ "GetServerZoneId",					Common_GetServerZoneId, },
	{ "GetServerAreaId",					Common_GetServerAreaId, },

	//---------------------------------------------------------------------------
	{ "SendToClientPlayerEnterScene",		Send2C_PlayerEnterScene, },
	{ "SendToClientPlayerLeaveScene",		Send2C_PlayerLeaveScene, },

	//---------------------------------------------------------------------------
	//	取得可用的任务列表位置
	{ "GetEmptyMissionPos",					Mis_GetEmptyMissionPos, },
	{ "GetMainMissionId",					Mis_GetMainMissionId, },
	{ "GetIndexByMissionID",				Mis_GetIndexByMissionID, },
	{ "GetMissionIdByIndex",				Mis_GetMissionIdByIndex, },
	{ "GetMissionLimitLevel",				Mis_GetMissionLimitLevelByIndex, },

	//	给user设置任务
	{ "SetMissionToUser",					Mis_SetMissionToUser, },
//	{ "UpdateMainMissionInfoToDB",			Mis_UpdateMainMissionDBInfo },

	//	任务结束
	{ "MissionFinished",					Mis_MissionFinished, },
	//	设置/获取任务标志
	{ "SetMissionFlag",						Mis_SetMissionFlag, },
	{ "GetMissionFlag",						Mis_GetMissionFlag, },
	//	设置任务(...)状态
	{ "SetFixedBitValue",					Bufer_SetFixedBitValue, },
	{ "GetFixedBitValue",					Bufer_GetFixedBitValue, },
	{ "SetFixedValue",						Bufer_SetFixedValue, },
	{ "GetFixedValue",						Bufer_GetFixedValue, },
	{ "SetFixedValueByPlayerId",			Bufer_SetFixedValueByPlayerId, },

	//	+日常任务info数据
	{ "SetDailyMissionFlag",				Mis_SetDailyMissionFlag, },

	//	发送任务列表
	{ "SendMissionList",					MisDlg_SendMissionList, },
	//	发送任务完成列表
	{ "SendMissionCompleteList",			MisDlg_SendMissionCompleteList, },
	//	清除剩余状态列表数据
	{ "ResetMissionStateToLastByLuaIndex",	Mis_ResetMissionStateToLastByLuaIndex, },
	//	更新任务1024存储数据库信息
	{ "SaveSinglePlayerFixedInfo",			Buffer_SaveSinglePlayerFixedInfo, },
	{ "GetSinglePlayerFixedInfoByPos",		Buffer_GetSinglePlayerFixedInfoByPos },


	//---------------------------------------------------------------------------
	//	奖励数据准备
	{ "RewardDataStart",					Reward_DataStart, },
	//	奖励数据设置
	{ "RewardDataSet",						Reward_DataSet, },
	//	奖励数据完成
	{ "RewardDataFinished",					Reward_DataFinished, },
	//	奖励数据发送
	{ "RewardDataToClient",					Reward_DataToClient, },

	//---------------------------------------------------------------------------
	//	修改&更新 玩家财富
	//{ "ModifyGold",							Modify_Gold, },
	//{ "ModifyDiamond",						Modify_Diamond, },
	//{ "ModifyExp",							Modify_Exp, },
	//{ "ModifyProp",							Modify_Prop, },


	//---------------------------------------------------------------------------
	//	通用协议
	{ "MsgCommonDataStart",						MsgCommon_DataStart, },
	{ "MsgCommonDataSet",						MsgCommon_DataSet, },
	{ "MsgCommonDataFinished",					MsgCommon_DataFinished, },
	{ "MsgCommonSendToClient",					MsgCommon_SendToClient, },

	//	通用协议扩展
	{ "MsgCommonExDataStart",					MsgCommonEx_DataStart, },
	{ "MsgCommonExDataSet",						MsgCommonEx_DataSet, },
	{ "MsgCommonExDataFinished",				MsgCommonEx_DataFinished, },
	{ "MsgCommonExSendToClient",				MsgCommonEx_SendToClient, },
	//---------------------------------------------------------------------------
	//	设置玩家称号
	{ "API_PlayerActionLog",					PlayerActionLog, },

	//	设置玩家称号
	{ "SetTitleToUser",							Title_SetToUser, },
	{ "GetOutOfDateTitleIndex",					Title_GetOutOfDateTitleIndex, },


	//---------------------------------------------------------------------------
	//	背包相关
	{ "GetItemCountByItemId",					Backpack_GetItemCountByItemId, },
	//{ "SetItemCountByItemId",					Backpack_SetItemCountByItemId, },

	//---------------------------------------------------------------------------
	//	任务相关
	{ "GetMissionInfoArrayData",				Mission_GetInfoArrayData, },

	//---------------------------------------------------------------------------
	//	日常任务
	{ "GetDailyMisssionConfigBaseInfo",			DailyMission_ConfigInfo, },
	{ "GetDailyMissionConfigCount",				DailyMission_ConfigCount,},
	{ "DailyMissionList",						DailyMission_ListClear,},

	{ "GetReleasedState",						DailyMission_GetReleasedState, },
	{ "GetRequirLimit",							DailyMission_GetRequirLimit, },
	{ "GetActiveLimit",							DailyMission_GetActiveLimit, },
	//{ "GetEmptyPosByErea",						DailyMission_GetEmptyPosByErea, },
	{ "GetDailyEmptyPosByErea",						DailyMission_GetEmptyPosByErea, },

	{ "GetUnlockSystemId",						DailyMission_GetUnlockSystemId, },
	{ "GetUnlockSystemData",					DailyMission_GetUnlockSystemData, },
	{ "CheckDailyMissionUnlockData",			DailyMission_CheckUnlockData, },
	{ "GetPlayerValueAboutUnlockSys",			DailyMission_GetPlayerValueAboutUnlockSys, },
	{ "DailyMissionRewardBoxInfoToClient",		DailyMission_RewardBoxInfo, },
	{ "GetDailyMissionStartAndEndPos",			DailyMission_GetStartAndEndPos, },
	{ "CheckMissionInDailyList",				DailyMission_InThelist },
	{ "SendDailyMissionList",					DailyMission_SendList, },


	//------------------------------------------------------------------------------
	//	悬赏任务
	{ "GetMissionOfferRewardRewardStartPos",			MissionOfferReward_GetStartPos, },

	{ "SetMissionOfferRewardStar",						MissionOfferReward_SetStar, },
	{ "SendOfferRewardMissionList",						MissionOfferReward_ListToClient, },
	{ "ClearOfferRewardMissionByIdx",					MissionOfferReward_ClearByIdx, },
	{ "GetAvailableOfferRewardMissionPos",				MissionOfferReward_GetAvailablePos, },
	{ "GetOfferRewardMissionIdxById",					MissionOfferReward_GetIndexById, },
	{ "ResetOfferRewardMissionByIndex",					MissionOfferReward_ResetByIndex, },
	{ "GetOfferRewardMissionUpdateCostByIndex",			MissionOfferReward_GetUpdateCostByIdxZero, },
	//!
	//设置/重置 悬赏任务状态
	//版本稳定后：可删
	{ "SetElseOfferRewardMissionInvalidState",			MissionOfferReward_SetElseMissionInvalidState, },
	{ "ResetElseOfferRewardMissionInvalidState",		MissionOfferReward_ResetElseMissionInvalidState, },
	//!

	{ "UpdateOfferRewardMissionListByOneItem",			MissionOfferReward_UpdateListByOneItem, },
	{ "GetOfferRewardMissionStarLevel",					MissionOfferReward_GetStarLevel, },
	{ "GetOfferRewardMissionRequirValue",				MissionOfferReward_GetRequirValue, },
	{ "GetOfferRewardMissionTargetId",					MissionOfferReward_GetTargetId, },
	{ "GetMissionOfferRewardCompleteImmediatelyCost",	MissionOfferReward_CompleteImmediatelyCost, },

	{ "GetMissionOfferStartAndEndPos",					MissionOfferReward_GetStartAndEndPos, },
	{"CheckOfferRewardMissionListIsExist",				MissionOfferReward_CheckMissionListIsExist },

	//---------------------------------------------------------------------------
	//	主线任务
	{ "DungeonClearance",								MainMission_DungeonClearance, },//删--！！不可再从lua中回调
	//{ "CheckMissionStateByItemChanged",					Mission_ChangeItemCheckMissionState, },


	//------------------------------------------------------------------------------
	//	更新任务条目信息(To Client)
	{ "UpdateMissionItemInfo",						Mission_UpdateItemInfo, },


	//------------------------------------------------------------------------------
	//	任务奖励
	{ "GetMissionRewardTableItemData",				Mission_GetRewardTableItemData, },
	{ "GetMissionRewardTableItemCount",				Mission_GetRewardTableItemCount, },

	//------------------------------------------------------------------------------
	//	VIP相关
	{ "GetSweepRewardCount",				Vip_GetSweepRewardCount, },
	{ "GetRewardTaskMaxCount",				Vip_GetRewardTaskMaxCount, },
	{ "GetHornRewardCount",					Vip_GetHornRewardCount, },

	//------------------------------------------------------------------------------
	//	随机
	{ "RandomIntValue",						Random_IntValue, },

	//------------------------------------------------------------------------------
	//	游戏时间
	{ "GetGameCurrentTime",					Game_CurrentTime ,},
	//	日期时间
	{ "GetGameDayTime",						Game_DayTime, },

	//------------------------------------------------------------------------------
	//	Player相关
	{ "SetPlayerId",						Player_SetPlayerId, },
	{ "GetPlayerId",						Player_GetPlayerId, },

	{ "SetPlayerAccount",					Player_SetAccount, },
	{ "GetPlayerAccount",					Player_GetAccount, },

	{ "SetPlayerName",						Player_SetName, },
	{ "GetPlayerName",						Player_GetName, },

	{ "SetPlayerArea",						Player_SetArea, },
	{ "GetPlayerArea",						Player_GetArea, },

	{ "SetPlayerPhoto",						Player_SetPhoto, },
	{ "GetPlayerPhoto",						Player_GetPhoto, },

	{ "SetPlayerPhotoFrame",				Player_SetPhotoFrame, },
	{ "GetPlayerPhotoFrame",				Player_GetPhotoFrame, },

	{ "SetPlayerExps",						Player_SetExps, },
	{ "GetPlayerExps",						Player_GetExps, },

	{ "SetPlayerMaxExps",					Player_SetMaxExps, },
	{ "GetPlayerMaxExps",					Player_GetMaxExps, },

	{ "SetPlayerLevel",						Player_SetLevel, },
	{ "GetPlayerLevel",						Player_GetLevel, },

	{ "SetPlayerHeroId",					Player_SetHeroId, },
	{ "GetPlayerHeroId",					Player_GetHeroId, },

	{ "SetPlayerVip",						Player_SetVip, },
	{ "GetPlayerVip",						Player_GetVip, },

	{ "SetPlayerVipExps",					Player_SetVipExps, },
	{ "GetPlayerVipExps",					Player_GetVipExps, },

	{ "SetPlayerUnionId",					Player_SetUnionId, },
	{ "GetPlayerUnionId",					Player_GetUnionId, },

	{ "SetPlayerUnionWtGroupId",			Player_SetUnionWtGroupId, },
	{ "GetPlayerUnionWtGroupId",			Player_GetUnionWtGroupId, },

	{ "SetPlayerUnionPosition",				Player_SetUnionPosition, },
	{ "GetPlayerUnionPosition",				Player_GetUnionPosition, },

	{ "SetPlayerAfc",						Player_SetAfc, },
	{ "GetPlayerAfc",						Player_GetAfc, },
	{ "ChangePlayerAfc",					Player_ChangeAfc, },

	{ "SetPlayerThew",						Player_SetThew, },
	{ "GetPlayerThew",						Player_GetThew, },
	{ "ChangePlayerThew",					Player_ChangeThew, },

	{ "GetMaxThewValByPlayerLevel",			Player_GetMaxThewValByLevel, },



	{ "SetPlayerDaySigned",					Player_SetDaySigned, },
	{ "GetPlayerDaySigned",					Player_GetDaySigned, },

	{ "SetPlayerTDining",					Player_SetTDining, },
	{ "GetPlayerTDining",					Player_GetTDining, },

	{ "SetPlayerGuide",						Player_SetGuide, },
	{ "GetPlayerGuide",						Player_GetGuide, },

	{ "SetPlayerFightHero",					Player_SetFightHero, },
	{ "GetPlayerFightHero",					Player_GetFightHero, },

	{ "SetPlayerAdFightHero",				Player_SetAdFightHero, },
	{ "GetPlayerAdFightHero",				Player_GetAdFightHero, },

	{ "SetPlayerEd1FightHero",				Player_SetEd1FightHero, },
	{ "GetPlayerEd1FightHero",				Player_GetEd1FightHero, },

	{ "SetPlayerEd2FightHero",				Player_SetEd2FightHero, },
	{ "GetPlayerEd2FightHero",				Player_GetEd2FightHero, },

	{ "SetPlayerEd3FightHero",				Player_SetEd3FightHero, },
	{ "GetPlayerEd3FightHero",				Player_GetEd3FightHero, },

	{ "SetPlayerEd4FightHero",				Player_SetEd4FightHero, },
	{ "GetPlayerEd4FightHero",				Player_GetEd4FightHero, },

	{ "SetPlayerEd5FightHero",				Player_SetEd5FightHero, },
	{ "GetPlayerEd5FightHero",				Player_GetEd5FightHero, },

	{ "SetPlayerArenaFightHero",			Player_SetArenaFightHero, },
	{ "GetPlayerArenaFightHero",			Player_GetArenaFightHero, },

	{ "SetPlayerThroneFightHero",			Player_SetThroneFightHero, },
	{ "GetPlayerThroneFightHero",			Player_GetThroneFightHero, },

	{ "SetPlayerExpeditionFightHero",		Player_SetExpeditionFightHero, },
	{ "GetPlayerExpeditionFightHero",		Player_GetExpeditionFightHero, },

	{ "SetPlayerMiniFightHero",				Player_SetMiniFightHero, },
	{ "GetPlayerMiniFightHero",				Player_GetMiniFightHero, },

	{ "SetPlayerFuncList",					Player_SetFuncList, },
	{ "GetPlayerFuncList",					Player_GetFuncList, },

	{ "SetPlayerSceneList",					Player_SetSceneList, },
	{ "GetPlayerSceneList",					Player_GetSceneList, },

	{ "SetPlayerDotBuffer",					Player_SetDotBuffer, },
	{ "GetPlayerDotBuffer",					Player_GetDotBuffer, },

	{ "SetPlayerGrooveShop",				Player_SetGrooveShop, },
	{ "GetPlayerGrooveShop",				Player_GetGrooveShop, },

	{ "SetPlayerEliteShop",					Player_SetEliteShop, },
	{ "GetPlayerEliteShop",					Player_GetEliteShop, },

	{ "SetPlayerMysteryShop",				Player_SetMysteryShop, },
	{ "GetPlayerMysteryShop",				Player_GetMysteryShop, },

	{ "SetPlayerPveShop",					Player_SetPveShop, },
	{ "GetPlayerPveShop",					Player_GetPveShop, },

	{ "SetPlayerPvpShop",					Player_SetPvpShop, },
	{ "GetPlayerPvpShop",					Player_GetPvpShop, },

	{ "SetPlayerUnionShop",					Player_SetUnionShop, },
	{ "GetPlayerUnionShop",					Player_GetUnionShop, },

	{ "SetPlayerNewbieReward",				Player_SetNewbieReward, },
	{ "GetPlayerNewbieReward",				Player_GetNewbieReward, },

	{ "SetPlayerEventDungeon",				Player_SetEventDungeon, },
	{ "GetPlayerEventDungeon",				Player_GetEventDungeon, },

	{ "SetPlayerEdDayInfo",					Player_SetEdDayInfo, },
	{ "GetPlayerEdDayInfo",					Player_GetEdDayInfo, },

	{ "SetPlayerLvReward",					Player_SetLvReward, },
	{ "GetPlayerLvReward",					Player_GetLvReward, },

	{ "SetPlayerOnlineReward",				Player_SetOnlineReward, },
	{ "GetPlayerOnlineReward",				Player_GetOnlineReward, },

	{ "SetPlayerSkillPoint",				Player_SetSkillPoint, },
	{ "GetPlayerSkillPoint",				Player_GetSkillPoint, },

	{ "SetPlayerSkillPointTime",			Player_SetSkillPointTime, },
	{ "GetPlayerSkillPointTime",			Player_GetSkillPointTime, },

	{ "SetPlayerSceneId",					Player_SetSceneId, },
	{ "GetPlayerSceneId",					Player_GetSceneId, },

	{ "SetPlayerSoulDraw",					Player_SetSoulDraw, },
	{ "GetPlayerSoulDraw",					Player_GetSoulDraw, },

	{ "SetPlayerGoldDraw",					Player_SetGoldDraw, },
	{ "GetPlayerGoldDraw",					Player_GetGoldDraw, },
	{ "ChangePlayerGoldDraw",				Player_ChangeGoldDraw, },

	{ "SetPlayerDiamondDraw",				Player_SetDiamondDraw, },
	{ "GetPlayerDiamondDraw",				Player_GetDiamondDraw, },
	{ "ChangePlayerDiamondDraw",			Player_ChangeDiamondDraw, },

	{ "SetPlayerChangeName",				Player_SetChangeName, },
	{ "GetPlayerChangeName",				Player_GetChangeName, },

	{ "SetPlayeOnlineTime",					Player_SetOnlineTime, },
	{ "GetPlayeOnlineTime",					Player_GetOnlineTime, },

	{ "SetPlayeMaxRank",					Player_SetMaxRank, },
	{ "GetPlayeMaxRank",					Player_GetMaxRank, },

	// 设置和获取游戏货币 gold 10，diamond 11
	{ "SetPlayerCurrency",					Player_SetCurrency, },
	{ "GetPlayerCurrency",					Player_GetCurrency, },
	{ "ChangePlayerCurrency",				Player_ChangeCurrency, },


	{ "GetSceneInfoByPlayerIdx",			Player_GetSceneInfoByPlayerIdx, },
	{ "SetSceneInfoByPlayerIdx",			Player_SetSceneInfoByPlayerIdx, },

	{ "GetLastSceneInfoByPlayerIdx",		Player_GetLastSceneInfoByPlayerIdx, },
	{ "SetLastSceneInfoByPlayerIdx",		Player_SetLastSceneInfoByPlayerIdx, },


	//	{ "GetPlayerVipLevel",					Player_GetPlayerVipLevel, },
	{ "GetLastDungeonId",					Player_GetLastDungeonId, },

	{ "SetPlayerRedPointNotify",			Player_SetRedPointNotify, },


	//---------------------------------------------------------------------------

	{ "SendCheckAccountRet",				Player_SendCheckAccountRet, },
	{ "SendPlayerChatMsgNotify",			Player_SendChatMsgNotify, },

	//---------------------------------------------------------------------------
	//	打印日志
	{ "log",								Log, },

	{ "sendTo",								CSendToClient, },
	{ "sendToByPlayerID",					CSendToClientByPlayerID, },
	{ "CReadJsonFile",						CReadJsonFile, },
//	{ "GetUsrPosIdByAccountId",				CGetUsrPosIdByAccountId, },
	{ "send_msg_notify",					CSendMsgNoitfyToPlayer, },
	{ "send_msg_notify_by_playerid",		CSendMsgNoitfyToPlayerByPlayerId, },
	{ "send_msg_notify_all_player",			CSendMsgNoitfyToAllPlayer, },
		
	//---------------------------------------------------------------------------
		
	// lcl 2017-11-3 红点标签回调
	{ "check_red_flag_label",				CCheckRedFlagLabel, },
	{ "delete_red_flag_label",				CDeleteRedFlagLabel, },
	{ "check_red_flag_friend",				CCheckRedFlagFriend, },
	{ "check_red_flag_time",				CCheckRedFlagTime, },
	{ "check_red_flag_hero",				CCheckRedFlagHero, },

	//---------------------------------------------------------------------------
	{ "PlayerLoginFinished",				Player_LoginFinished, },
	{ "PlayerEnterGame",					Player_EnterGame, },
	{ "PlayerLeaveGame",					Player_LeaveGame, },
	{ "EnterScene",							Player_EnterScene, },
	{ "LeaveScene",							Player_LeaveScene, },

	{ "GetAreaIdFromPlayerID",				Player_GetAreaIdFromPlayerID, },
	{ "CreatePlayerID",						Player_CreatePlayerID, },

	{ "SetSceneTempValue",					Bufer_SetSceneTempValue, },
	{ "GetSceneTempValue",					Bufer_GetSceneTempValue, },
	{ "SetMapElementViewGroup",				Map_SetSceneElementViewGroup, },

	//---------------------------------------------------------------------------
	{ "InitPlayerDefaultTitle",				Init_PlayerDefaultTitle, },

	//---------------------------------------------------------------------------
	{"UpdateFixedDungeonStar",				Dungeon_UpdateStar,},


	//---------------------------------------------------------------------------
	{ "GetMonsterInfoFromTable",			Monster_GetMonsterInfoFromTable, },

	//---------------------------------------------------------------------------
	{ "SetSceneMonsterHp",					Scene_SetSceneMonsterHp },

	//---------------------------------------------------------------------------
	{ "GetConfigApposite",					Common_GetConfigApposite },
	{ "GetGameHost",						Common_GetGameHost },
	{ "GetOnlinePlayerCount",				Common_GetOnlinePlayerCount },


	{ "SetPlayerCurrentViewGroup",			Player_SetCurrentViewGroup },
	{ "ResetPlayerLastViewGroup",			Player_ResetLastViewGroup },

	{ "SendGMChatMsgNotify",				GM_SendChatMsgNotify, },
	{ "SendGMMarqueeMsgNotify",				GM_SendMarqueeMsgNotify, },

	{ "sendToBySocketId",					CSendToClientBySocketId, },


	{ "SetPlayerGoldRevive",				Player_SetGoldRevive, },
	{ "GetPlayerGoldRevive",				Player_GetGoldRevive, },

	{ "SetPlayerDiamondRevive",				Player_SetDiamondRevive, },
	{ "GetPlayerDiamondRevive",				Player_GetDiamondRevive, },

	{ "SetPlayerArenaShop",					Player_SetArenaShop, },
	{ "GetPlayerArenaShop",					Player_GetArenaShop, },

	{ "SetPlayerRewardShop",				Player_SetRewardShop, },
	{ "GetPlayerRewardShop",				Player_GetRewardShop, },

	{ "SetPlayerBuyThew",					Player_SetBuyThew, },
	{ "GetPlayerBuyThew",					Player_GetBuyThew, },

	{ "SetPlayerMaxRank",					Player_SetMaxRank, },
	{ "GetPlayerMaxRank",					Player_GetMaxRank, },

	{ "SetSinglePlayerHeroInfo",			Player_SetSingleHeroInfo, },
	{ "SetSinglePlayerHeroInfoByPlayerId",	Player_SetSinglePlayerHeroInfoByPlayerId, },

	{ "SendUpdateItemListRet",				Player_SendUpdateItemListRet, },

	//---------------------------------------------------------------------------
	//	PvP场景相关
	//---------------------------------------------------------------------------

	
	//	设置PvP开始
	{ "StartPvPScene",						Scene_StartPvPScene, },

	//-------------------------------------------------------------------------------
	//	引导相关
	{ "SendGuideInfo",						Player_SendGuideInfo, },

	//-------------------------------------------------------------------------------
	//	 控制前端界面开启关闭
	{ "ManipulateSpecifiedUI",				Player_ManipulateSpecifiedUI, },

	//-------------------------------------------------------------------------------
	//	向客户端发送指定缓冲区[1024]部分内容
	{ "S2CSpecifiedBufferPartStart",		Player_S2CSpecifiedBufferPartStart, },
	{ "S2CAddSpecifiedBufferPart",			Player_S2CAddSpecifiedBufferPart, },
	{ "S2CSpecifiedBufferPartEnd",			Player_S2CSpecifiedBufferPartEnd, },
	{ "S2CSpecifiedBufferPart",				Player_S2CSpecifiedBufferPart, },

	//	向客户端发送指定参数个数缓冲区[1024]部分内容
	{ "S2CSpecifiedBufferByThreeArgs",		Player_S2CSpecifiedBufferByThreeArgs, },

	//-----------------------------------------------------------------------------
	//	设置英雄经验池
	{ "SetPlayerExpsPool",					Player_SetExpsPool, },
	{ "GetPlayerExpsPool",					Player_GetExpsPool, },


	//------------------------------------------------------------------------------
	{ "SetUpdatePlayerInfoFlag",			Player_UpdateInfoType, },

	//------------------------------------------------------------------------------
	{ "GetDigPoints",						Wild_GetPlayerDigPoints, },
	{ "SendDigPoints",						Wild_SendDigPoints, },


	//------------------------------------------------------------------------------
	{ "SetPlayerPetId",						Player_SetPetId, },
	{ "GetPlayerPetId",						Player_GetPetId, },

	//------------------------------------------------------------------------------
	{ "SetPlayerMountsId",					Player_SetMountsId, },
	{ "GetPlayerMountsId",					Player_GetMountsId, },

	//------------------------------------------------------------------------------
	{ "SetPlayerUnionName",					Player_SetUnionName, },
	{ "GetPlayerUnionName",					Player_GetUnionName, },

	{ "SendPlayerUnionInfoChangedNotify",	Send_UnionInfoChangedNotify, },
		
	{ "SystemSendRechargeRedpacket",	Send_SystemRechargeRedpacket, },

	{ "SendTwGroupIdNotify",				Sent_TW_GroupIdNotify },

	{ "SetPlayerCurrHeroLevel",				Player_SetCurrHeroLevel, },
	{ "GetPlayerCurrHeroLevel",				Player_GetCurrHeroLevel, },

	{ "SendUpdatePetListRet",				Player_SendUpdatePetListRet, },
	{ "SendUpdateMountsListRet",			Player_SendUpdateMountsListRet, },
	{ "SendUpdateHeroListRet",				Player_SendUpdateHeroListRet, },

	{ "SendPlayerFixedInfoByErea",			Player_SendFixed1024InfoByErea, },

	{ "SetPlayerDefendMountsId",			Player_SetDefendMountsId, },
	{ "GetPlayerDefendMountsId",			Player_GetDefendMountsId, },

	{ "SetPlayerDefendPetId",				Player_SetDefendPetId, },
	{ "GetPlayerDefendPetId",				Player_GetDefendPetId, },

	//	取得PvP同盟的id
	//{ "GetPlayerPvPAllianceId",				Player_GetPlayerPvPAllianceId, },
	//	设置PvP场景状态为开始
	{ "SetPvPSceneStart",					Scene_SetPvPSceneStart, },

	//------------------------------------------------------------------------------
	//	用户注册/登录标识
	{ "GetPlayerNewbieFlag",				Player_GetNewbieFlag, },
	{ "SetPlayerNewbieFlag",				Player_SetNewbieFlag, },

	{ "ResetSinglePlayerHeroInfo",			Player_ResetSingleHeroInfo, },

	//------------------------------------------------------------------------------
	//	排行
	{ "ReflushLevelRankingsData",			Rank_ReflushLevelRankingsData, },
	{ "SetRankUpdateState",					Rank_SetUpdateState, },
	{ "AddMemberToTimingList",				Rank_AddMemberToTimingList, },

	{ "ReflushArenaRankingsData",			Rank_ReflushArenaRankingsData, },


	//------------------------------------------------------------------------------
	{ "GetPlayerTimingsSaveTimes",			Player_GetTimingsSaveTimes, },
	{ "SetPlayerTimingsSaveTimes",			Player_SetTimingsSaveTimes, },
	{ "AddPlayerTimingsSaveTimes",			Player_AddTimingsSaveTimes, },

	//------------------------------------------------------------------------------
	//	设置登录、注册可运行
	{ "EnableProcessRegister",				PlayerManager_EnableProcessRegister, },
	{ "EnableProcessLogin",					PlayerManager_EnableProcessLogin, },

	//------------------------------------------------------------------------------
	//	功能解锁表
	{ "CheckUnlockSystemIdExist",			FunctionUnlock_CheckId},


	{ "GetPlayerTmpIntValue",				Player_GetTmpIntValue, },
	{ "SetPlayerTmpIntValue",				Player_SetTmpIntValue, },
	{ "AddPlayerTmpIntValue",				Player_AddTmpIntValue, },

	{ "GetPlayerMaxThewTime",				Player_GetMaxThewTime, },
	{ "SetPlayerMaxThewTime",				Player_SetMaxThewTime, },


	{ "GetPlayerDailyTaskString",			Player_GetDailyTaskString, },
	{ "SetPlayerDailyTaskString",			Player_SetDailyTaskString, },

	{ "ChangePlayerUnionInformation",		Player_ChangeUnionInformation, },
	
	//---------------------------------------------------------------------------
	{ "PvPSceneCheckIsNextAutoTime",		Scene_PvPCheckIsNextAutoTime, },
	{ "PvPSceneCreateMonster",				Scene_PvPCreateMonster, },
	{ "PvPSceneCheckHasEnoughFreeMonster",	Scene_PvPCheckHasEnoughFreeMonster, },


	{ "sendToDBServer",						CSendMessageToDBServer, },
	{ "sendToCenterServer",					CSendMessageToCenterServer, },
	{ "sendToLoginServer",					CSendMessageToLoginServer, },
	{ "sendToMapServer",					CSendMessageToMapServer, },
	{ "sendToSelfMapServer",				CSendMessageToSelfMapServer, },
	{ "sendToPlatform",						CSendToPlatform, },

	{ "GetPlayerKey",						Player_GetKey, },					
		
	{ "SetPlayerHeroSkinId",				Player_SetHeroSkinId, },
	{ "GetPlayerHeroSkinId",				Player_GetHeroSkinId, },

	{ "SetPlayerFirstRechargeState",		Player_SetFirstRechargeState, },
	{ "GetPlayerFirstRechargeState",		Player_GetFirstRechargeState, },

	{ "SetPlayerForeverCardRewardState", Player_SetForeverCardRewardState, },
	{ "GetPlayreForeverCardRewardState", Player_GetForeverCardRewardState, }, 


	{ "SetPlayerRechargeList",				Player_SetRechargeList, },
	{ "GetPlayerRechargeList",				Player_GetRechargeList, },

	{ "SetPlayerForeverCard",				Player_SetForeverCard, },
	{ "GetPlayerForeverCard",				Player_GetForeverCard, },

	{ "SetPlayerMonthCard",					Player_SetMonthCard, },
	{ "GetPlayerMonthCard",					Player_GetMonthCard, },

	{ "SetPlayerVipGiftBox",				Player_SetVipGiftBox, },
	{ "GetPlayerVipGiftBox",				Player_GetVipGiftBox, },



	{ "GetPlayerUsrPosId",					Player_GetUsrPosId, },

	//------------------------------------------------------------------------------
	
	{ "SetPlayerAchievementLevel",			Player_SetAchievementLevel, },
	{ "SetPlayerAllServiceAchievementRanking",	Player_SetAllServiceAchievementRanking, },

	{ "GetUuid", Get_Uuid, },

	{ "GetRecommendFriend", Player_GetRecommendFriend, },
	{ "GetPlayerInfo", Player_GetPlayerInfo, },
	{ "GetPlayerInfoByName", Player_GetPlayerInfoByName, },
	{ "PlayerChanged", Player_PlayerChanged, },
	{ "AddNewPlayer", Player_AddNewPlayer, },
	{ "SetPlayerInfoToCpp",				Player_SetPlayerInfoToCpp, },
	{ "GetIsHavePlayer",				Player_GetIsHave, },								// 是否存在该玩家
	{ "GetUnionInfo",					Union_GetUnionInfo},
	{ "GetUnionApplyList",				Union_GetUnionApplyList },

	//---------------------------------------------------------------------------------------
	// 服务器间心跳
	{ "G2M_Update_HeartTime", G2M_UpdateHeartTime, },

	//---------------------------------------------------------------------------------------
	// WebRedis
	{ "SetWebRedisMapList", WebRedis_SetMapList, },

	{ "IsPlayerOnline", Scene_IsPlayerOnline, },	// 玩家是否在线
		

	{ nullptr, nullptr }
};
